package com.yxb.service.common.interf;

import com.yxb.service.common.domain.UserDevice;
import com.yxb.service.common.option.UserDeviceOption;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.ImmutableTriple;

import java.util.List;

public interface UserDeviceService {


    public ImmutableTriple<Boolean, String , UserDevice> addUserDevice(UserDevice userDevice);

    public ImmutableTriple<Boolean, String , UserDevice> updateUserDevice(UserDevice userDevice);

    public List<UserDevice> queryListByUserId(String userId, UserDeviceOption  userDeviceOption);

    public List<UserDevice> queryListByDeviceId(String deviceId,  UserDeviceOption  userDeviceOption);

    public ImmutablePair<Boolean, String> unbind(Integer id,String userId);

}
